package com.life.goal.infrastructure.english.converter;

import com.life.goal.domain.entity.OralSentence;
import com.life.goal.domain.entity.WordBook;
import com.life.goal.infrastructure.english.po.OralSentencePO;
import com.life.goal.infrastructure.english.po.WordBookPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface EnglishDataConverter {

    EnglishDataConverter INSTANCE = Mappers.getMapper(EnglishDataConverter.class);

    WordBookPO toWordBookPO(WordBook wordBook);

    List<WordBookPO> toWordBookPOList(List<WordBook> list);

    OralSentencePO toOralSentencePO(OralSentence oralSentence);

    List<OralSentencePO> toOralSentencePOList(List<OralSentence> list);

    List<OralSentence> toOralSentenceList(List<OralSentencePO> list);
}
